package demo3.jt;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Add {
    public static void main(String[] args) {
        ApplicationContext a = new AnnotationConfigApplicationContext(Spring.class);
        Cat bean = a.getBean(Cat.class);
        bean.hello();
    }
}
